
#ifndef __MISSILE_H__
#define	__MISSILE_H__

#include "basetype.h"

#include "ISpirit.h"

#include "MetaGraph.h"

class CMissile : public ISpirit
{
public:

	CMissile()
	{
		m_missile_x			= 0;          // position of missle
		m_missile_y			= 0;            
		m_missile_state		= 0;          // state of missle 0 off, 1 on
	}

	virtual ~CMissile()
	{

	}

	int Start(int baseX, int baseY, RECT clipRect);

	int Move(int offsetX, int offsetY);

	int Draw(CDDraw* pDDraw);

	virtual	int	SetName(LPTSTR lpName)
	{
		return 0;
	}

	virtual	LPTSTR GetName()
	{
		return NULL;
	}

protected:

	// lets use a line segment for the missle
	int m_missile_x;              // position of missle
	int	m_missile_y;            
	int	m_missile_state;          // state of missle 0 off, 1 on

	RECT				m_clipRect;

	CGraphLine			m_line;
};

#endif